import {useLocation} from "react-router-dom";
function useQueryString(){
    const {search} = useLocation();
    const obj = {};
    search.slice(1).split("&").forEach(v=>{
        const [key,value] = v.split("=");
        obj[key] = value;
    })
    return obj;
}
export {
    useQueryString
}